function [g3_v, T_order, T] = dynamic_g3(y, x, params, steady_state, T_order, T)
if nargin < 6
    T_order = -1;
    T = NaN(85, 1);
end
[T_order, T] = P00hr.sparse.dynamic_g3_tt(y, x, params, steady_state, T_order, T);
g3_v = NaN(56, 1);
g3_v(1)=T(17)*T(43)-T(18)*T(44);
g3_v(2)=T(22)*T(39)-T(23)*T(40);
g3_v(3)=T(17)*T(47)-T(18)*((-y(20))*T(35)*T(48)-T(48));
g3_v(4)=T(4)*(params(4)-1)*params(8)*T(70)-T(6)*(params(4)-1)*T(70);
g3_v(5)=T(36)*T(39)-T(6)*T(35)*T(40);
g3_v(6)=T(17)*T(52)-T(18)*T(35)*T(6)*T(35);
g3_v(7)=T(1)*((T(21)*T(41)+T(20)*(-1)/(y(12)*y(12))+T(21)*T(41)+log(y(12))*T(71)+T(21)*T(41)+T(20)*(-1)/(y(12)*y(12))+T(20)*(-1)/(y(12)*y(12))+T(2)*(y(12)+y(12))/(y(12)*y(12)*y(12)*y(12)))/(y(20)-1)+T(71)/T(3))-T(5)*T(72);
g3_v(8)=T(31)*T(43)-T(32)*T(44);
g3_v(9)=T(1)*(((y(20)-1)*(T(21)*((1-y(20))*T(35)*T(45)-T(45))+log(y(12))*((1-y(20)-1)*(1-y(20))*T(35)*T(73)+T(73)*(-(1-y(20)+1-y(20)-1)))+T(21)*((1-y(20))*T(35)*T(45)-T(45))+T(2)*T(35)*(-1)/(y(12)*y(12)))-T(42))/((y(20)-1)*(y(20)-1))+(T(3)*((1-y(20)-1)*(1-y(20))*T(35)*T(73)+T(73)*(-(1-y(20)+1-y(20)-1)))-2*(y(20)-1)*T(41))/(T(3)*T(3)))-T(5)*(((-y(20))-1)*(-y(20))*T(35)*T(74)+T(74)*(-((-y(20))-1-y(20))));
g3_v(10)=T(22)*(params(4)-1)*params(8)*T(49)-T(23)*(params(4)-1)*T(49);
g3_v(11)=T(31)*T(47)-T(32)*((-y(20))*T(35)*T(48)-T(48));
g3_v(12)=T(1)*(((y(20)-1)*(y(20)-1)*(y(20)-1)*(log(y(12))*T(75)+T(21)*T(35)*T(2)*T(35))-T(46)*(y(20)-1+y(20)-1))/((y(20)-1)*(y(20)-1)*(y(20)-1)*(y(20)-1))+(T(3)*T(3)*(2*(y(20)-1)*((1-y(20))*T(35)*T(45)-T(45))+T(3)*T(75)-(2*(y(20)-1)*((1-y(20))*T(35)*T(45)-T(45))+2*T(20)))-(T(3)*((1-y(20))*T(35)*T(45)-T(45))-T(20)*2*(y(20)-1))*(T(3)*2*(y(20)-1)+T(3)*2*(y(20)-1)))/(T(3)*T(3)*T(3)*T(3)))-T(5)*((-y(20))*T(35)*T(35)*T(48)-T(35)*T(48)-T(35)*T(48));
g3_v(13)=T(4)*(params(4)-1)*params(8)*T(76)-(params(2)*getPowerDeriv(y(15),params(7),3)+T(6)*(params(4)-1)*T(76));
g3_v(14)=T(36)*(params(4)-1)*params(8)*T(49)-T(6)*T(35)*(params(4)-1)*T(49);
g3_v(15)=T(31)*T(52)-T(32)*T(35)*T(6)*T(35);
g3_v(16)=T(1)*(((y(20)-1)*(y(20)-1)*(y(20)-1)*(y(20)-1)*((y(20)-1)*log(y(12))*T(35)*T(2)*T(35)*(y(20)-1+y(20)-1)+(y(20)-1)*(y(20)-1)*(log(y(12))*T(35)*T(2)*T(35)+(y(20)-1)*log(y(12))*T(35)*T(35)*T(2)*T(35))-((y(20)-1)*log(y(12))*T(35)*T(2)*T(35)*(y(20)-1+y(20)-1)+2*((y(20)-1)*log(y(12))*T(2)*T(35)-T(2)*log(y(12)))))-T(50)*((y(20)-1)*(y(20)-1)*(y(20)-1+y(20)-1)+(y(20)-1)*(y(20)-1)*(y(20)-1+y(20)-1)))/((y(20)-1)*(y(20)-1)*(y(20)-1)*(y(20)-1)*(y(20)-1)*(y(20)-1)*(y(20)-1)*(y(20)-1))+(T(3)*T(3)*T(3)*T(3)*(T(77)+T(3)*T(3)*(2*(y(20)-1)*T(35)*T(2)*T(35)+2*T(2)*T(35)+2*(y(20)-1)*T(35)*T(2)*T(35)+T(3)*T(35)*T(35)*T(2)*T(35)-(2*T(2)*T(35)+2*(y(20)-1)*T(35)*T(2)*T(35)+2*T(2)*T(35)))-(T(77)+(T(3)*T(2)*T(35)-(T(2)-1)*2*(y(20)-1))*(2*(y(20)-1)*2*(y(20)-1)+2*T(3)+2*(y(20)-1)*2*(y(20)-1)+2*T(3))))-T(51)*(T(3)*T(3)*(T(3)*2*(y(20)-1)+T(3)*2*(y(20)-1))+T(3)*T(3)*(T(3)*2*(y(20)-1)+T(3)*2*(y(20)-1))))/(T(3)*T(3)*T(3)*T(3)*T(3)*T(3)*T(3)*T(3)))-T(5)*T(35)*T(35)*T(6)*T(35);
g3_v(17)=T(19)*T(56)-params(4)*T(19)*T(57);
g3_v(18)=T(26)*T(53)-T(27)*params(4)*T(53);
g3_v(19)=T(19)*T(60)-params(4)*T(19)*params(1)*((-y(30))*T(37)*T(61)-T(61));
g3_v(20)=T(9)*(y(13)+y(13))/(y(13)*y(13)*y(13)*y(13))-T(12)*params(4)*(y(13)+y(13))/(y(13)*y(13)*y(13)*y(13));
g3_v(21)=T(38)*T(53)-params(1)*T(11)*T(37)*params(4)*T(53);
g3_v(22)=T(19)*T(65)-params(4)*T(19)*params(1)*T(37)*T(11)*T(37);
g3_v(23)=T(72);
g3_v(24)=((-y(20))-1)*(-y(20))*T(35)*T(74)+T(74)*(-((-y(20))-1-y(20)));
g3_v(25)=(-y(20))*T(35)*T(35)*T(48)-T(35)*T(48)-T(35)*T(48);
g3_v(26)=T(10)*params(4)*params(8)*params(1)*((T(25)*T(54)+T(24)*(-1)/(y(22)*y(22))+T(25)*T(54)+log(y(22))*T(78)+T(25)*T(54)+T(24)*(-1)/(y(22)*y(22))+T(24)*(-1)/(y(22)*y(22))+T(7)*(y(22)+y(22))/(y(22)*y(22)*y(22)*y(22)))/(y(30)-1)+T(78)/T(8))-(1-params(3)+params(4)*T(10))*params(1)*getPowerDeriv(y(22),(-y(30)),3);
g3_v(27)=T(30)*T(56)-params(4)*T(30)*T(57);
g3_v(28)=T(10)*params(4)*params(8)*params(1)*(((y(30)-1)*(T(25)*((1-y(30))*T(37)*T(58)-T(58))+log(y(22))*((1-y(30)-1)*(1-y(30))*T(37)*T(79)+T(79)*(-(1-y(30)+1-y(30)-1)))+T(25)*((1-y(30))*T(37)*T(58)-T(58))+T(7)*T(37)*(-1)/(y(22)*y(22)))-T(55))/((y(30)-1)*(y(30)-1))+(T(8)*((1-y(30)-1)*(1-y(30))*T(37)*T(79)+T(79)*(-(1-y(30)+1-y(30)-1)))-2*(y(30)-1)*T(54))/(T(8)*T(8)))-(1-params(3)+params(4)*T(10))*params(1)*(((-y(30))-1)*(-y(30))*T(37)*T(80)+T(80)*(-((-y(30))-1-y(30))));
g3_v(29)=T(26)*T(62)-T(27)*params(4)*T(62);
g3_v(30)=T(30)*T(60)-params(4)*T(30)*params(1)*((-y(30))*T(37)*T(61)-T(61));
g3_v(31)=T(10)*params(4)*params(8)*params(1)*(((y(30)-1)*(y(30)-1)*(y(30)-1)*(log(y(22))*T(81)+T(25)*T(37)*T(7)*T(37))-T(59)*(y(30)-1+y(30)-1))/((y(30)-1)*(y(30)-1)*(y(30)-1)*(y(30)-1))+(T(8)*T(8)*(2*(y(30)-1)*((1-y(30))*T(37)*T(58)-T(58))+T(8)*T(81)-(2*(y(30)-1)*((1-y(30))*T(37)*T(58)-T(58))+2*T(24)))-(T(8)*((1-y(30))*T(37)*T(58)-T(58))-T(24)*2*(y(30)-1))*(T(8)*2*(y(30)-1)+T(8)*2*(y(30)-1)))/(T(8)*T(8)*T(8)*T(8)))-(1-params(3)+params(4)*T(10))*params(1)*((-y(30))*T(37)*T(37)*T(61)-T(37)*T(61)-T(37)*T(61));
g3_v(32)=T(9)*T(82)-T(12)*params(4)*T(82);
g3_v(33)=T(38)*T(62)-params(1)*T(11)*T(37)*params(4)*T(62);
g3_v(34)=T(30)*T(65)-params(4)*T(30)*params(1)*T(37)*T(11)*T(37);
g3_v(35)=T(35)*T(35)*T(6)*T(35);
g3_v(36)=T(10)*params(4)*params(8)*params(1)*(((y(30)-1)*(y(30)-1)*(y(30)-1)*(y(30)-1)*((y(30)-1)*log(y(22))*T(37)*T(7)*T(37)*(y(30)-1+y(30)-1)+(y(30)-1)*(y(30)-1)*(log(y(22))*T(37)*T(7)*T(37)+(y(30)-1)*log(y(22))*T(37)*T(37)*T(7)*T(37))-((y(30)-1)*log(y(22))*T(37)*T(7)*T(37)*(y(30)-1+y(30)-1)+2*((y(30)-1)*log(y(22))*T(7)*T(37)-T(7)*log(y(22)))))-T(63)*((y(30)-1)*(y(30)-1)*(y(30)-1+y(30)-1)+(y(30)-1)*(y(30)-1)*(y(30)-1+y(30)-1)))/((y(30)-1)*(y(30)-1)*(y(30)-1)*(y(30)-1)*(y(30)-1)*(y(30)-1)*(y(30)-1)*(y(30)-1))+(T(8)*T(8)*T(8)*T(8)*(T(83)+T(8)*T(8)*(2*(y(30)-1)*T(37)*T(7)*T(37)+2*T(7)*T(37)+2*(y(30)-1)*T(37)*T(7)*T(37)+T(8)*T(37)*T(37)*T(7)*T(37)-(2*T(7)*T(37)+2*(y(30)-1)*T(37)*T(7)*T(37)+2*T(7)*T(37)))-(T(83)+(T(8)*T(7)*T(37)-(T(7)-1)*2*(y(30)-1))*(2*(y(30)-1)*2*(y(30)-1)+2*T(8)+2*(y(30)-1)*2*(y(30)-1)+2*T(8))))-T(64)*(T(8)*T(8)*(T(8)*2*(y(30)-1)+T(8)*2*(y(30)-1))+T(8)*T(8)*(T(8)*2*(y(30)-1)+T(8)*2*(y(30)-1))))/(T(8)*T(8)*T(8)*T(8)*T(8)*T(8)*T(8)*T(8)))-(1-params(3)+params(4)*T(10))*params(1)*T(37)*T(37)*T(11)*T(37);
g3_v(37)=(-(T(14)*exp(y(17))*T(84)));
g3_v(38)=(-(T(33)*exp(y(17))*T(66)));
g3_v(39)=(-(T(14)*exp(y(17))*T(66)));
g3_v(40)=(-(exp(y(17))*T(28)*T(67)));
g3_v(41)=(-(exp(y(17))*T(28)*T(33)));
g3_v(42)=(-(T(14)*exp(y(17))*T(28)));
g3_v(43)=(-(T(13)*exp(y(17))*T(85)));
g3_v(44)=(-(T(13)*exp(y(17))*T(67)));
g3_v(45)=(-(T(13)*exp(y(17))*T(33)));
g3_v(46)=(-(T(13)*exp(y(17))*T(14)));
g3_v(47)=(-T(70));
g3_v(48)=(-T(76));
g3_v(49)=(-(T(14)*params(4)*getPowerDeriv(y(3),params(4)-1,3)));
g3_v(50)=(-(T(33)*T(68)));
g3_v(51)=(-(T(29)*T(67)));
g3_v(52)=(-(T(15)*T(85)));
g3_v(53)=(-(T(16)*(1-params(4))*T(84)));
g3_v(54)=(-(T(34)*(1-params(4))*T(66)));
g3_v(55)=(-((1-params(4))*T(28)*T(69)));
g3_v(56)=(-(T(13)*(1-params(4))*getPowerDeriv(y(15),(-params(4)),3)));
end
